package org.jsola.hr.web;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.jsola.core.Page;
import org.jsola.core.Result;
import org.jsola.hr.dto.EmpContactsUrgentAddDTO;
import org.jsola.hr.dto.EmpContactsUrgentUpdateDTO;
import org.jsola.hr.query.EmpContactsUrgentQuery;
import org.jsola.hr.vo.EmpContactsUrgentListVO;
import org.jsola.hr.vo.EmpContactsUrgentVO;

import java.util.List;

/**
 * 员工紧急联系人
 *
 * @author zhr
 */
@Api(tags = "hr-员工紧急联系人")
public interface IEmpContactsUrgentControllerAPI {

    /**
     * 新增员工紧急联系人
     * @param empContactsUrgentAddDTO 员工紧急联系人新增实体
     * @return 员工紧急联系人展示对象
     */
    @ApiOperation(value = "新增员工紧急联系人")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empContactsUrgentAddDTO", dataType = "EmpContactsUrgentAddDTO", value = "新增员工紧急联系人", paramType = "body")
    })
    Result<EmpContactsUrgentVO> save(EmpContactsUrgentAddDTO empContactsUrgentAddDTO);


    /**
     * 修改员工紧急联系人
     * @param empContactsUrgentUpdateDTO 员工紧急联系人
     * @return 更新数量
     */
    @ApiOperation(value = "修改员工紧急联系人")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empContactsUrgentUpdateDTO", dataType = "EmpContactsUrgentUpdateDTO", value = "修改员工紧急联系人", paramType = "body")
    })
    Result<Integer> update(EmpContactsUrgentUpdateDTO empContactsUrgentUpdateDTO);




    /**
     * 删除单个员工紧急联系人，彻底删除
     * @param empContactsUrgentId 员工紧急联系人id
     * @return 删除数量
     */
    @ApiOperation(value="删除单个员工紧急联系人，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empContactsUrgentId", dataType = "String", value = "员工紧急联系人id", paramType = "path")
    })
    Result<Integer> delete(String empContactsUrgentId);


    /**
     * 批量删除员工紧急联系人，彻底删除
     * @param empContactsUrgentIds 员工紧急联系人id集合
     * @return 删除数量
     */
    @ApiOperation(value = "批量删除员工紧急联系人，彻底删除")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empContactsUrgentIds", dataType = "String[]", value = "员工紧急联系人id数组", paramType = "body" ,allowMultiple = true)
    })
    Result<Integer> deleteBatch(String[] empContactsUrgentIds);


    /**
     * 根据员工紧急联系人id查询员工紧急联系人详情
     * @param empContactsUrgentId 员工紧急联系人id
     * @return 员工紧急联系人详情
     */
    @ApiOperation(value="根据员工紧急联系人id查询员工紧急联系人详情")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empContactsUrgentId", dataType = "String", value = "员工紧急联系人id", paramType = "path")
    })
    Result<EmpContactsUrgentVO> findById(String empContactsUrgentId);


    /**
     * 查询员工紧急联系人
     * @param empContactsUrgentQuery 员工紧急联系人查询参数
     * @return page
     */
    @ApiOperation(value="查询员工紧急联系人")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empContactsUrgentQuery", dataType = "EmpContactsUrgentQuery", value = "员工紧急联系人查询参数", paramType = "query")
    })
    Result<List<EmpContactsUrgentListVO>> listAll(EmpContactsUrgentQuery empContactsUrgentQuery);


     /**
     * 分页查询员工紧急联系人
     * @param empContactsUrgentQuery 员工紧急联系人查询参数
     * @return page
     */
    @ApiOperation(value="分页查询员工紧急联系人")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "empContactsUrgentQuery", dataType = "EmpContactsUrgentQuery", value = "员工紧急联系人查询参数", paramType = "query")
    })
    Result<Page<EmpContactsUrgentListVO>> page(EmpContactsUrgentQuery empContactsUrgentQuery);


}

